{% extends "help/index.html" %}


{% block contentblock %}
    <div class="article">
        <div class="title">
            <div class="title-text">专辑列表<span
                    class="update-time"><i>更新时间:</i><i>2019-11-20</i></span></div>
        </div>
        <div class="content">
            <h2>专辑列表</h2>
            <h3>接口</h3>
            <code>baidu_dueros/album_list</code>
            <h5 id="参数">参数</h5>
            <table>
                <thead>
                <th>字段名</th>
                <th>类型</th>
                <th>是否必填</th>
                <th>描述</th>
                </thead>
                <tbody>
                <tr>
                    <td>appId</td>
                    <td>String</td>
                    <td>是</td>
                    <td>资源方唯一标示</td>
                </tr>
                <tr>
                    <td>page</td>
                    <td>int</td>
                    <td>可选</td>
                    <td>页码，从1开始</td>
                </tr>
                <tr>
                    <td>pageSize</td>
                    <td>int</td>
                    <td>可选</td>
                    <td>每页数据返回行数</td>
                </tr>
                <tr>
                    <td>timestamp</td>
                    <td>int</td>
                    <td>是</td>
                    <td>调用时间戳，单位秒</td>
                </tr>
                <tr>
                    <td>token</td>
                    <td>String</td>
                    <td>是</td>
                    <td>请求令牌</td>
                </tr>
                </tbody>
            </table>
            <h4>返回值</h4>
            <table>
                <thead>
                <th>字段名</th>
                <th>类型</th>
                <th>是否必填</th>
                <th>描述</th>
                </thead>
                <tbody>
                <tr>
                    <td>errno</td>
                    <td>int</td>
                    <td>是</td>
                    <td>接口返回状态</td>
                </tr>
                <tr>
                    <td>data</td>
                    <td>string</td>
                    <td>是</td>
                    <td>内容json</td>
                </tr>
                <tr>
                    <td>data.totalPage</td>
                    <td>int</td>
                    <td>是</td>
                    <td>总页数</td>
                </tr>
                <tr>
                    <td>data.pageSize</td>
                    <td>int</td>
                    <td>是</td>
                    <td>每页数据返回行数</td>
                </tr>
                <tr>
                    <td>data.totalNum</td>
                    <td>int</td>
                    <td>是</td>
                    <td>数据总行数</td>
                </tr>
                <tr>
                    <td>data.albumList</td>
                    <td>string</td>
                    <td>是</td>
                    <td>专辑分类集合json</td>
                </tr>
                <tr>
                    <td>data.albumList[].id</td>
                    <td>string</td>
                    <td>是</td>
                    <td>专辑ID</td>
                </tr>
                <tr>
                    <td>data.albumList[].name</td>
                    <td>string</td>
                    <td>是</td>
                    <td>专辑名称</td>
                </tr>
                <tr>
                    <td>data.albumList[].categoryName</td>
                    <td>string</td>
                    <td>是</td>
                    <td>专辑所属类别</td>
                </tr>
                <tr>
                    <td>data.albumList[].createTime</td>
                    <td>int</td>
                    <td>是</td>
                    <td>创建时间戳</td>
                </tr>
                <tr>
                    <td>data.albumList[].updateTime</td>
                    <td>int</td>
                    <td>是</td>
                    <td>更新时间戳</td>
                </tr>
                <tr>
                    <td>data.alumList[].saleType</td>
                    <td>int</td>
                    <td>可选</td>
                    <td>付费类型0-免费1-付费</td>
                </tr>
                <tr>
                    <td>data.albumList[].price</td>
                    <td>int</td>
                    <td>可选</td>
                    <td>资源方购买价格，单位分</td>
                </tr>
                <tr>
                    <td>data.albumList[].coverUrl</td>
                    <td>string</td>
                    <td>可选</td>
                    <td>专辑封面图</td>
                </tr>
                </tbody>
            </table>
            <h4>实例</h4>
            <pre><code>
https://wweb.yourhost.com/baidu_dueros/album_list?page=1
{
    "errno": 0,
    "data": {
        "totalPage": 21,
        "albumList": [
            {
                "updateTime": 1573187848,
                "name": "鬼吹灯",
                "price_type": 1,
                "saleType": 0,
                "coverUrl": "http://www.baidu.com/images/11.png",
                "id": "88",
                "createTime": 1573177926,
                "categoryName": "小说"
            },
        ],
        "totalNum": 208,
        "pageSize": "10"
    }
}
            </code></pre>
        </div>
    </div>
{% endblock contentblock %}